Group chat initiating method on basis of shared document, device and apparatus therefor, and storage medium

ABSTRACT

Disclosed in the embodiment of the present disclosure is a group chat initiating method on the basis of a shared document, comprising: when a first user account accesses a shared document, querying the shared document to obtain a group-specific name card inserted therein, and in the shared document, according to a joining state of the first user account in a chat group, displaying a group chat control corresponding to the joining state, and in response to an operation of the user performed on the chat control, sending a corresponding group chat request for joining the chat group or displaying an interface of the chat group. Also disclosed in the embodiment of the present disclosure are a device for initiating a group chat on the basis of a shared document, an electronic apparatus, and a computer-readable storage medium.

CROSS REFERENCE TO RELATED APPLICATIONS

The present disclosure is a continuation of International ApplicationNo. PCT/CN2018/113509, filed on Nov. 1, 2018, which claims the right ofpriority of Chinese Patent Application No. 201810718747.9, filed on Jun.29, 2018. The disclosures of the aforementioned applications are hereinincorporated by reference in their entireties.

TECHNICAL FIELD

The present disclosure relates to the field of Internet technologies,and in particular to a group chat initiation method and apparatus basedon a shared document, and a device and a storage medium.

BACKGROUND

With continuous development of Internet communication technologies,Internet software has become an indispensable tool in a dailycommunication process of team members. An instant messaging (IM) chattool can quickly establish a communication platform between individualsor teams by using a product platform, allowing users to communicate witheach other online anytime anywhere, thereby greatly improving theefficiency of information transmission as well as the operatingefficiency of a team.

Currently, the joining of a group chat or the invoking of a chat windowis implemented by scanning a two-dimensional code via a mobile phone.However, for a personal computer (PC) end user, it is necessary to firstscan a code by using a mobile phone and then perform operations at a PCend. Consequently, the existing technical solution is complex inoperation and low in communication efficiency.

SUMMARY

The present disclosure solves technical problems in the related art toat least some extent.

The present disclosure provides a group chat initiation method based ona shared document, which simplifies operations of joining a group chator invoking a chat window, and improves the communication efficiency.

The present disclosure provides a group chat initiation apparatus basedon a shared document.

The present disclosure provides an electronic device.

The present disclosure provides a non-transitory storage medium.

The group chat initiation method based on a shared document inembodiments of a first aspect of the present disclosure includes:determining a first user account that accesses the shared document;querying the shared document to obtain a group business card insertedinto the shared document; displaying, according to a join-in state ofthe first user account into a chat group, a group chat controlcorresponding to the join-in state in the shared document, wherein thegroup chat control is used for joining the chat group or for displayingan interface of the chat group; and sending, in response to an operationon the group chat control, a corresponding group chat request.

In addition, the group chat initiation method based on the shareddocument in the embodiments of the present disclosure further has theadditional technical features as follows.

Optionally, the displayed group chat control is used for displaying theinterface of the chat group, and sending, in response to the operationon the group chat control, the corresponding group chat requestincludes: sending the group chat request to a client of a socialapplication, wherein the group chat request received by the client ofthe social application carries an identifier of the chat group, suchthat the client of the social application switches the interface of thechat group to a foreground display state according to the identifier ofthe chat group.

Optionally, after sending the group chat request to the client of thesocial application, the method further includes: judging, based onwhether an interface of the shared document is out of focus, whether adownload page of the client is to be accessed.

Optionally, the displayed group chat control is used for joining thechat group, and sending, in response to the operation on the group chatcontrol, the corresponding group chat request includes: sending thegroup chat request to a server of the social application, wherein thegroup chat request received by the server carries an identifier of thechat group and an identifier of the first user account, such that theserver instructs, after adding the first user account into the chatgroup, a client of the social application to display a notificationmessage indicating joining of a group chat and/or to switch theinterface of the chat group to a foreground display state.

Optionally, before querying the shared document to obtain the groupbusiness card inserted into the shared document, the method furtherincludes: determining a second user account that accesses the shareddocument; displaying a group list of chat groups that the second useraccount has joined into, in response to an identifier inserted into theshared document by the second user account; and inserting, according toa chat group selected by the second user account from the group list, acorresponding group business card into the shared document.

Optionally, after displaying the group list, the method furtherincludes: searching, according to a search term input by the second useraccount after the identifier, the group list for a candidate chat groupthat matches the search term; and updating and displaying the group listaccording to the candidate chat group.

Optionally, before displaying, according to the join-in state of thefirst user account into the chat group, the group chat controlcorresponding to the join-in state in the shared document, the methodfurther includes: sending a query request to a server of a socialapplication, wherein the query request is used by the server to querythe join-in state of the first user account into the chat group and togenerate a query response according to the join-in state; and receivingthe query response sent by the server, and determining the join-in stateaccording to the query response.

The group chat initiation apparatus based on a shared document inembodiments of a second aspect of the present disclosure includes: adetermination module configured to determine a first user account thataccesses the shared document; a query module configured to query theshared document to obtain a group business card inserted into the shareddocument; a display module configured to display, according to a join-instate of the first user account into a chat group, a group chat controlcorresponding to the join-in state in the shared document, wherein thegroup chat control is used for joining the chat group or for displayingan interface of the chat group; and a sending module configured to send,in response to an operation on the group chat control, a correspondinggroup chat request.

The electronic device in embodiments of a third aspect of the presentdisclosure includes: a memory, a processor, and a computer program thatis stored in the memory and can be run on the processor, wherein theprocessor implements, when executing the program, the method asdescribed in the above method embodiments.

The non-transitory storage medium in embodiments of a fourth aspect ofthe present disclosure is provided, which has a computer program storedthereon, wherein when being executed by a processor, the computerprogram implements the method as described in the above methodembodiments.

The technical solutions provided in the embodiments of the presentdisclosure may contain the following beneficial effects.

After the determination of a first user account that accesses a shareddocument, querying the shared document to obtain a group business cardinserted into the shared document; displaying, according to a join-instate of the first user account into a chat group, a group chat controlcorresponding to the join-in state in the shared document, wherein thegroup chat control can be used for joining the chat group or displayingan interface of the chat group; and then, sending, in response to anoperation on the group chat control, a corresponding group chat request.Thus, the joining of a group chat or the invoking of a chat window canbe implemented by operating a control in the shared document, whichoptimizes a communication path, reduces operation processes, and solvesthe technical problem of a low communication efficiency in the priorart.

The additional aspects and advantages of the present disclosure will bepartly presented in the following description, partly become apparentfrom the following description or be appreciated by practice of thepresent disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

To describe the technical solutions in embodiments of the presentdisclosure more clearly, one or more embodiments are illustrativelydescribed below by using their corresponding pictures in the drawings,and the illustrative descriptions do not constitute limitations on theembodiments, in which:

FIG. 1 is a flowchart of a group chat initiation method based on ashared document according to an embodiment of the present disclosure;

FIG. 2 is a schematic diagram of an effect of invoking a floating windowin a web browser;

FIG. 3 is a schematic diagram of an effect of displaying a group chatcontrol of “initiating a conversation” in the web browser;

FIG. 4 is a schematic diagram of an effect of displaying a group chatcontrol of “joining a group chat” in the web browser;

FIG. 5 is a schematic diagram of an effect of second-time confirmationof whether to join a group in the web browser;

FIG. 6A is a flowchart of a group chat initiation method based on ashared document according to another embodiment of the presentdisclosure;

FIG. 6B is a flowchart of a group chat initiation method based on ashared document according to still another embodiment of the presentdisclosure;

FIG. 7 is a flowchart of a group chat initiation method based on ashared document according to yet another embodiment of the presentdisclosure;

FIG. 8 is a schematic structural diagram of a group chat initiationapparatus based on a shared document provided in an embodiment of thepresent disclosure;

FIG. 9A is another schematic structural diagram of the group chatinitiation apparatus based on the shared document provided in theembodiment of the present disclosure;

FIG. 9B is still another schematic structural diagram of the group chatinitiation apparatus based on the shared document provided in theembodiment of the present disclosure;

FIG. 10 is yet another schematic structural diagram of the group chatinitiation apparatus based on the shared document provided in theembodiment of the present disclosure;

FIG. 11 is a schematic diagram illustrating a non-transitory storagemedium according to an embodiment of the present disclosure; and

FIG. 12 is a schematic hardware structural diagram of an electronicdevice according to an embodiment of the present disclosure.

DETAILED DESCRIPTION OF THE EMBODIMENTS

Embodiments of the present disclosure will be described below in detail,and examples of the embodiments are shown in the drawings, wherein thesame or similar reference numerals throughout the drawings represent thesame or similar elements or the elements having the same or similarfunctions. The embodiments described below with reference to theaccompanying drawings are exemplary, and are intended to explain, butnot be interpreted as limiting, the present disclosure.

The group chat initiation method and apparatus based on a shareddocument, and a device, and a storage medium in the embodiments of thepresent disclosure are described below with reference to the drawings.

It can be learned from the description of the prior art above that, theexisting joining of a group chat or the invoking of a chat window isimplemented by using a mobile phone to scan a two-dimensional code tojoin a certain group chat. However, for a PC end user, it is necessaryto first scan a code by using a mobile phone and then perform operationsat a PC end. Consequently, the existing technical solution is complex inoperation and low in communication efficiency.

In the embodiments of the present disclosure, a shared document isqueried to obtain a group business card inserted into the shareddocument, a corresponding group chat control is displayed according to astate of whether a first user account has joined into a chat group,referred to as a “join-in state,” and a corresponding group chat requestis sent in response to an operation of a user on the group chat control.

In some embodiments, FIG. 1 is a flowchart of a group chat initiationmethod based on a shared document according to an embodiment of thepresent disclosure. The method provided in this embodiment may beperformed by a browser, or may be performed by other applicationprograms that are used for accessing the shared document. Theapplication program that performs the method provided in this embodimentmay be run on a PC end. A person skilled in the art can know that the PCend is only a possible implementation. The application program is alsoapplicable to other electronic devices, such as: a mobile electronicdevice such as a mobile phone, a smart phone, a notebook computer, adigital broadcast receiver, a personal digital assistant (PDA), a PAD(tablet), a portable multimedia player (PMP), a navigation apparatus, avehicle-mounted electronic device, a vehicle-mounted displayelectronics, and a vehicle-mounted electronic rearview mirror, and afixed electronic device such as a digital TV.

As shown in FIG. 1, the group chat initiation method based on a shareddocument includes the following acts.

S110, a first user account that accesses a shared document isdetermined.

In some embodiments, the shared document may be shared and edited by aplurality of user accounts, which are, for ease of distinguishing,marked as a first user account, a second user account, etc. A user towhich the first user account belongs is an initiator of the currentgroup chat, that is, a user who actively initiates the group chat.Generally, since there is a one-to-one correspondence between a user anda user account, the user account may be used to identify the user. Inthis act, the user identity can be, in some embodiments, recognized inthe following several manners so as to determine an account thataccesses the shared document, which is illustrated below by way ofexamples.

In example I, a user registration mechanism is implemented, in which anaccount and a login password of a user are stored in a server todistinguish and verify different users, such that when the user logs inat different terminals, identity recognition and message synchronizationcan be performed.

In example II, a biometric recognition technology is implemented, inwhich the biometric features, such as a fingerprint and an iris, of auser are stored in a server to distinguish and verify different users,such that when the user logs in at different terminals, identityrecognition and message synchronization can be performed.

In example III, hardware information, such as a Media Access Control(MAC) address and a Bluetooth address, of a related device is read foridentity recognition so as to distinguish different users, and once theuser changes a login device, the user is considered as a new user. Theinformation sent and received by the user through the present device isonly stored in the present device, which makes it impossible toimplement the message synchronization. Moreover, another user logging inat the present device is also considered as the user, and thus canaccess all the information sent and received on the present device.

S120, the shared document is queried to obtain a group business cardinserted into the shared document.

In some embodiments, for a chat group that already exists, an identifierof the chat group is stored in the shared document in the form of agroup business card, and the group business card inserted into theshared document is inserted by a second user account that accesses theshared document prior to the first user account. The process ofinserting the group business card is described below by way of examples.

In a first example, as shown in FIG. 2, a Lark social application isused as an example for description. In a web browser, when an inputcharacter @ is read from a document, a floating window is invoked, andtwo functions of the symbol @ are displayed in the floating window forboth referring to a user or a document and inserting a Lark groupbusiness card. A list of groups that recently participant in chattingare displayed in options expanded during the insertion of the Lark groupbusiness card.

In a second example, in a web browser, when an input character @ is readfrom a document, a floating window is invoked, and when a keywordcontained in a group name continues to be read from the document, a listof groups is filtered, such that only a list of groups with the inputkeyword contained in a group name is displayed to help a user quicklysearch for a group name.

In a third example, in a web browser, when an input character @ is readfrom a document, a floating window is invoked, and when a keywordcontained in a group name continues to be read from the document andnone of all the group names contains the input keyword, contentdisplayed in options expanded during the insertion of a Lark groupbusiness card will be empty.

S130, a group chat control, corresponding to a join-in state of thefirst user account into a chat group, is displayed in the shareddocument according to the join-in state.

Here the group chat control is used for joining the chat group ordisplaying an interface of the chat group.

In some embodiments, there are two types of group chat controls, thatis, one is used for joining the chat group, and the other is used fordisplaying the interface of the chat group. One of the two types ofgroup chat controls may be displayed based on the join-in state of thefirst user account into the chat group, which is described below by wayof examples.

As shown in FIG. 3, if a user has joined into the chat group before, thecontent of the group chat control is displayed as “initiating aconversation”. As shown in FIG. 4, if a user has not yet joined the chatgroup, the content of the group chat control is displayed as “joining agroup chat”.

S140, a corresponding group chat request is sent, in response to anoperation on the group chat control.

It should be noted that different first user accounts correspond todifferent group chat controls, and the detected operations on the groupchat controls are also different, which is described below by way ofexamples.

In a first example, when it is detected that a user operates a groupchat control for “joining a group chat” through the first user account,as shown in FIG. 5, the group chat control for “joining a group chat”will jump to a new group chat control for second-time confirmation ofwhether to join a group, and after an operation of second-timeconfirmation performed by the user is detected, a front end transmits auserId (User Id) of the first user account and a chatId (Chat Id) of thegroup chat to a back-end, and the back-end associates the userId withthe chatId to complete a group joining operation of the first useraccount.

The userId of the first user account is an identifier of the account inthis account system, and information of the first user account may bedetermined by means of the userId. The chatId of the group chat is anidentifier of the chat group in the Lark social application, andinformation of the chat group may be determined by means of the chatId.

In a second example, when it is detected that the user operates thegroup chat control for “initiating a conversation” through the firstuser account, a chat conversation window of the group is directlydisplayed.

In summary, the group chat initiation method based on a shared documentin an embodiment of the present disclosure includes: determining a firstuser account that accesses a shared document; querying the shareddocument to obtain a group business card inserted into the shareddocument; displaying, according to a join-in state of the first useraccount into a chat group, a group chat control corresponding to thejoin-in state in the shared document; and sending, in response to anoperation on the group chat control, a corresponding group chat request.Thus, by querying the shared document, and sending, according to thejoin-in state of the first user account into the chat group, thecorresponding group chat request in response to the operation on thegroup chat control, the technical problem of complex operations ofscanning a code using a mobile phone in the prior art is solved.

Based on the description of the above embodiments, it can be learned howan application program for accessing a shared document initiates a groupchat based on a group business card inserted into the shared document,and to make the group chat initiation method based on a shared documentin the embodiments of the present disclosure clearer to a person skilledin the art, the process of how a client or a server of a socialapplication, in some embodiments, executes a group chat is describedbelow.

In a possible scenario, based on the method flow shown in FIG. 1, if itis detected in act S140 that the first user account operates a groupchat control for “initiating a conversation”, then a group chat requestof “initiating a conversation” is sent to a client, wherein the groupchat request carries the identifier chatId of the chat group, such thatthe client can switch the interface of the corresponding chat group to aforeground display state.

FIG. 6A is a flowchart of a group chat initiation method based on ashared document according to another embodiment of the presentdisclosure. As shown in FIG. 6A, based on the method flow shown in FIG.1, after the group chat request is sent to a client of a socialapplication in act S140, the group chat initiation method furtherincludes the acts as follows.

S210, an application program for accessing the shared document judgeswhether an interface of the shared document is out of focus, and if theinterface of the shared document is out of focus, act S220 is executed,otherwise act S230 is executed.

It is judged whether a download page of a client is to be accessed byjudging whether the interface of the shared document is out of focus.The reason is as follows: if the interface of the shared document is outof focus, it indicates that the client successfully switches theinterface of the chat group to a foreground display state; and if theinterface of the shared document is not out of focus, it indicates thatthe client does not switch the interface of the chat group to theforeground display state, and there may be a case in which the client isnot installed on the present device, which makes it necessary to remindthe user to which the first user account belongs to download and installthe client on the present device.

S220, it is not necessary to access the download page of the client.

In some embodiments, the client switches the interface of the chat groupto the foreground display state according to the identifier chatId ofthe chat group that is carried in the group chat request sent by theapplication program for the shared document.

S230, the download page of the client is accessed.

In some embodiments, the application program that accesses the shareddocument automatically accesses the download page of the client, anddisplays a download link of the client to the user to which the firstuser account belongs. At this time, the user may choose whether todownload and install the client. If the user drops out of downloadingand installing the client, the group chat cannot be initiated; and ifthe user chooses to download and install the client, then after theclient is downloaded and installed, the interface of the chat group isswitched to the foreground display state according to the identifierchatId of the chat group that is carried in the group chat request sentby the application program for the shared document.

Therefore, it is judged whether a user needs to download and install theclient by judging whether the interface of the shared document is out offocus, and a download link is provided for the user that needs todownload and install the client, such that the operation processes ofthe user are reduced, and the working efficiency is improved.

In another possible application scenario, based on the method flow shownin FIG. 1, if it is detected in act S140 that the first user accountoperates a group chat control for “joining a group chat”, and that theoperation of second-time confirmation is detected, then a group chatrequest of “joining a group chat” is sent to a server, wherein the groupchat request carries the identifier chatId of the chat group and theidentifier userId of the first user account, such that the serverinstructs, after adding the first user account into the chat group, aclient to display a notification message of the joining of the groupchat and/or to switch the interface of the chat group to the foregrounddisplay state.

FIG. 6B is a flowchart of a group chat initiation method based on ashared document according to still another embodiment of the presentdisclosure. As shown in FIG. 6B, based on the method flow shown in FIG.1, after the group chat request is sent to a server of a socialapplication in act S140, the group chat initiation method furtherincludes the acts as follows.

S310, the server receives the group chat request.

In some embodiments, the server receives the group chat request sent bythe application program that accesses the shared document, and obtainsthe identifier chatId of the chat group and the identifier userId of thefirst user account therefrom.

S320, the server adds the first user account into the chat group.

In some embodiments, the server adds data information of the first useraccount into an information library of members in the chat group.

S330, the server instructs a client to perform a correspondingoperation.

In some embodiments, the server instructs the client to displaynotification information indicating the joining of a group chat and/orto switch the interface of the chat group to the foreground displaystate.

Therefore, an application program that accesses the shared documentsends the group chat request to the server of the social application,the first user account is added into the group chat in the socialapplication, and the interface of the chat group is displayed at a frontend, such that the operations of a user joining a group are reduced, andthe working efficiency is improved.

Based on the description of the above embodiments, it can be learned howto initiate a group chat based on a group business card inserted intothe shared document. To make the group chat initiation method based on ashared document in the embodiments of the present disclosure clearer toa person skilled in the art, it will be explained how to insert a groupbusiness card into the shared document, which is described in detailbelow in conjunction with FIG. 7.

FIG. 7 is a flowchart of a group chat initiation method based on ashared document according to yet another embodiment of the presentdisclosure. As shown in FIG. 7, based on the method flow shown in FIG.1, before S110, the group chat initiation method further includes theacts as follows.

S410, a second user account that accesses a document is determined.

S420, a group list of chat groups that the second user account hasjoined into is displayed in response to a preset identifier insertedinto the shared document by the second user account.

In some embodiments, the preset identifier inserted by the second useraccount may be a special symbol such as @, #, $, &, and *, but shouldnot be the same as some symbols with special functions in the shareddocument.

It should be noted that there may be many group chats that the seconduser account has joined into, and to facilitate a user to which thesecond user account belongs in quickly finding the group to which theuser wants to join the shared document, a group in which a group chatrecord is recently generated is preferentially displayed, or afrequently used group may be manually preset for preferential display.

S430, according to a search term input by the second user account afterthe preset identifier, a candidate chat group that matches the searchterm is searched for in the group list.

S440, the group list is updated and displayed according to the candidatechat group of the second user account.

In some embodiments, the second user account filters and screens thegroup list by inputting the search term after the preset identifier, soas to screen out a chat group that matches the search term as thecandidate chat group and filter out the other chat groups, and thenupdates the original group list with the candidate chat group, such thatthe group list displays only the name of the chat group that matches thesearch term.

S450, according to a chat group selected by the second user account fromthe group list, a corresponding group business card is inserted into theshared document.

It should be noted that, in the same account system, a user may send, tothe other users, a group chat that the user has joined into, so as toinvite the other users to join the group chat. For ease of description,it is described in the context of the second user account modifyingcontent of the shared document and inviting the first user account tojoin a group chat.

In some embodiments, a group list of chat groups that the second useraccount has joined into is displayed in response to a preset identifierinserted into the shared document by the second user account, thecandidate chat group is matched according to the search term input bythe second user account after the preset identifier, the group list isupdated, and the corresponding group business card is inserted into theshared document according to the chat group selected by the second useraccount. At this time, the first user account accesses the modifiedshared document, the modified shared document is queried to obtain thegroup business card inserted into the document, a corresponding groupchat control is displayed according to a join-in state of the first useraccount into the chat group, and a corresponding group chat request issent in response to an operation of the first user account on the groupchat control. It is described below by way of examples.

A second account user wishes to invite a first account user to join achat group that the second account user has joined into but is not in ashared document. The first account user cannot send a group chat requestby querying the shared document to find an inserted group business cardand then operating a group chat control. The second account user caninsert a preset identifier into the shared document to acquire a list ofgroup chats that the second account user has joined into, and screen outand select the chat group by using a search term so that a groupbusiness card of the group can be inserted into the shared document. Atthis time, the first account user can find, by means of querying, thegroup business card of the group in the shared document, and operate acorresponding group chat control.

Therefore, users can share information of a chat group by inserting agroup business card into a shared document, which facilitates thesharing of group information and simplifies the acts of joining a groupchat.

To implement the above embodiments, the present disclosure furtherprovides a group chat initiation apparatus based on a shared document.FIG. 8 is a schematic structural diagram of a group chat initiationapparatus based on a shared document provided in the embodiment of thepresent disclosure. As shown in FIG. 8, the group chat initiationapparatus based on a shared document includes: a determination module81, a query module 82, a display module 83, and a sending module 84.

The determination module 81 is configured to determine a first useraccount that accesses a shared document.

The query module 82 is configured to query the shared document to obtaina group business card inserted into the shared document.

The display module 83 is configured to display, according to a join-instate of the first user account into a chat group, a group chat controlcorresponding to the join-in state in the shared document.

The sending module 84 is configured to send, in response to an operationon the group chat control, a corresponding group chat request.

It should be noted that the above explanations and descriptions of theembodiments of the group chat initiation method based on a shareddocument are also applicable to the group chat initiation apparatusbased on a shared document in this embodiment, which will not bedescribed herein again.

In the group chat initiation apparatus based on a shared document in theembodiment of the present disclosure, the determination module isconfigured to determine a first user account that accesses a shareddocument; the query module is configured to query the shared document toobtain a group business card inserted into the shared document; thedisplay module is configured to display a corresponding group chatcontrol according to a join-in state of the first user account into achat group; and the sending module is configured to send a correspondingchat request in response to an operation on the group chat control. Byquerying the shared document, and sending, according to the join-instate of the first user account into the chat group, the correspondinggroup chat request in response to the operation on the group chatcontrol, the technical problem of complex operations of scanning a codeusing a mobile phone in the prior art is solved.

Based on the above embodiments, the embodiments of the presentdisclosure further provide a possible implementation of a group chatinitiation apparatus based on a shared document. FIG. 9A is anotherschematic structural diagram of the group chat initiation apparatusbased on a shared document provided in the embodiment of the presentdisclosure. On the basis of the previous embodiment, as shown in FIG.9A, the apparatus further includes: a judgement module 85 and an accessmodule 86.

As a possible implementation of this embodiment, the sending module 84may be, in some embodiments, configured to: send, to a client of asocial application, a chat request, which carries an identifier of achat group.

The judgement module 85 is configured to judge whether an interface of ashared document is out of focus.

The access module 86 is configured to access a download interface of theclient.

It should be noted that the above explanations and descriptions of theembodiments of the group chat initiation method based on a shareddocument are also applicable to the group chat initiation apparatusbased on a shared document in this embodiment, which will not bedescribed herein again.

In the group chat initiation apparatus based on a shared document inthis embodiment of the present disclosure, it is judged whether a userneeds to download and install the client by judging whether theinterface of the shared document is out of focus, and a download link isprovided for the user that needs to download and install the client,such that the operation processes of the user are reduced, and theworking efficiency is improved.

Based on the above embodiments, the embodiments of the presentdisclosure further provide a possible implementation of the group chatinitiation apparatus based on a shared document. FIG. 9B is stillanother schematic structural diagram of the group chat initiationapparatus based on a shared document provided in the embodiment of thepresent disclosure. The group chat initiation apparatus based on ashared document includes: a determination module 81, a query module 82,a display module 83, and a sending module 84.

As a possible implementation of this embodiment, the sending module 84may be configured to: send, to a server of a social application, a chatrequest, which carries an identifier of a chat group and an identifierof a first user account.

It should be noted that the above explanations and descriptions of theembodiments of the group chat initiation method based on a shareddocument are also applicable to the group chat initiation apparatusbased on a shared document in this embodiment, which will not bedescribed herein again.

In the group chat initiation apparatus based on a shared document inthis embodiment of the present disclosure, an application program thataccesses the shared document sends the group chat request to the serverof the social application, the first user account is added into thegroup chat in the social application, and the interface of the chatgroup is displayed at a front end, such that the operations of a userjoining a group are reduced, and the working efficiency is improved.

Based on the above embodiments, the embodiments of the presentdisclosure further provide a possible implementation of a group chatinitiation apparatus based on a shared document. FIG. 10 is yet anotherschematic structural diagram of the group chat initiation apparatusbased on a shared document provided in the embodiment of the presentdisclosure. On the basis of the previous embodiment, as shown in FIG.10, the apparatus further includes: an insertion module 87.

As a possible implementation of this embodiment, the determinationmodule 81 may be further configured to: determine a second user accountthat accesses the shared document.

The insertion module 87 is configured to insert, into the shareddocument, a chat group that the second user account has joined into, bythe following acts: displaying a group list of chat groups that thesecond user account has joined into, in response to a preset identifierinserted into the shared document by the second user account; searching,according to a search term input by the second user account after thepreset identifier, the group list for a candidate chat group thatmatches the search term; updating and displaying the group listaccording to the candidate chat group of the second user account; andinserting, according to a chat group selected by the second user accountfrom the group list, a corresponding group business card into the shareddocument.

It should be noted that the above explanations and descriptions of themethod embodiments are also applicable to the apparatus in thisembodiment, which will not be described herein again.

In the group chat initiation apparatus based on a shared document inthis embodiment of the present disclosure, the group business card isinserted into the shared document through the second user account, andthe shard document is queried through the first user account, such thatusers can share information of a chat group by inserting the groupbusiness card into the shared document, which facilitates the sharing ofgroup information and simplifies the acts of joining a group chat.

To implement the above embodiments, the embodiments of the presentdisclosure further provide a non-transitory storage medium having acomputer program stored thereon, wherein when the program is executed bya processor, the group chat initiation method based on a shared documentas described in the above method embodiments is implemented.

FIG. 11 is a schematic diagram illustrating a non-transitory storagemedium according to an embodiment of the present disclosure. As shown inFIG. 11, the non-transitory storage medium 300 according to theembodiment of the present disclosure have non-transitorycomputer-readable instructions 301 stored thereon. When thenon-transitory computer-readable instructions 301 are executed by aprocessor, all or some of acts of the group chat initiation method basedon a shared document as described in the above embodiments of thepresent disclosure are performed.

To implement the above embodiments, the embodiments of the presentdisclosure further provide an electronic device, including: a memory, aprocessor, and a computer program that is stored in the memory and canbe run on the processor, wherein the processor implements, whenexecuting the program, the group chat initiation method based on ashared document as described in the above method embodiments.

FIG. 12 is a schematic hardware structural diagram of an electronicdevice according to an embodiment of the present disclosure. Theelectronic device may be implemented in various forms, and theelectronic device in the present disclosure may include but is notlimited to a mobile electronic device such as a mobile phone, a smartphone, a notebook computer, a digital broadcast receiver, a personaldigital assistant (PDA), a PAD (tablet), a portable multimedia player(PMP), a navigation apparatus, a vehicle-mounted electronic device, avehicle-mounted display electronics, and a vehicle-mounted electronicrearview mirror, and a fixed electronic device such as a digital TV anda desktop computer.

As shown in FIG. 12, an electronic device 1100 may include a wirelesscommunications unit 1110, an A/V (audio/video) input unit 1120, a userinput unit 1130, a sensing unit 1140, an output unit 1150, a memory1160, an interface unit 1170, a controller 1180, a power supply unit1190, etc. FIG. 12 shows the electronic device having variouscomponents. However, it should be understood that not all theillustrated components are required to be implemented. Alternatively,more or fewer components can be implemented.

The wireless communications unit 1110 allows radio communication betweenthe electronic device 1100 and a wireless communication system or anetwork. The A/V input unit 1120 is used for receiving an audio or videosignal. The user input unit 1130 can generate key input data accordingto a command input by a user, so as to control various operations of theelectronic device. The sensing unit 1140 detects a current state of theelectronic device 1100, the position of the electronic device 1100,whether there is touch input of a user on the electronic device 1100 ornot, an orientation of the electronic device 1100, acceleration ordeceleration movement and direction of the electronic device 1100, etc.,and generates a command or signal for controlling an operation of theelectronic device 1100. The interface unit 1170 is used as an interfacethrough which at least one external apparatus is connected to theelectronic device 1100. The output unit 1150 is configured to provide anoutput signal in a visual, audible, and/or tactile manner. The memory1160 may store a software program that is executed by the controller1180 for processing and controlling an operation, or may temporarilystore data that has been output or is to be output. The memory 1160 mayinclude at least one type of storage medium. Moreover, the electronicdevice 1100 may cooperate with a network storage apparatus that executesa storage function of the memory 1160 through a network connection. Thecontroller 1180 generally controls overall operations of the electronicdevice. In addition, the controller 1180 may include a multimedia modulefor reproducing or playing back multimedia data. The controller 1180 canperform pattern recognition processing to recognize, as a character oran image, handwriting input or picture drawing input performed on atouch screen. The power supply unit 1190 receives external power orinternal power under the control of the controller 1180, and providesappropriate power required to operate various elements and components.

Various implementations of the group chat initiation method based on ashared document provided in the present disclosure may be implemented ina computer-readable medium using, for example, computer software,hardware, or any combination thereof. For hardware implementation,various implementations of the group chat initiation method based on ashared document provided in the present disclosure may be implemented byusing at least one of an application specific integrated circuit (ASIC),a digital signal processor (DSP), a digital signal processing device(DSPD), a programmable logic device (PLD), a field programmable gatearray (FPGA), a processor, a controller, a microcontroller, amicroprocessor, and an electronic unit designed to perform the functionsdescribed herein. In some cases, the various implementations of thegroup chat initiation method based on a shared document provided in thepresent disclosure may be implemented in the controller 1180. Forsoftware implementation, the various implementations of the group chatinitiation method based on a shared document provided in the presentdisclosure may be implemented by a separate software module that isallowed to execute at least one function or operation. Software codescan be implemented by a software application program (or a program)written in any suitable programming language, and the software codes canbe stored in the memory 1160 and executed by the controller 1180.

Through the description of the above embodiments, those skilled in theart can clearly understand that the embodiments can be implemented bysoftware and necessary general hardware platforms. Of course, theembodiments can also be implemented in hardware. Based on suchunderstanding, the above technical solutions substantially, or thepart(s) thereof making contributions to the prior art, can be embodiedin the form of a software product, and the computer software product canbe stored in a non-transitory storage medium, such as a magnetic disk,an optical disk, a read-only memory (ROM) or a random access memory(RAM), which includes instructions to enable a computer device (whichcan be a personal computer, a server, or a network device, etc.) toexecute the methods in embodiments or parts of the embodiments.

Finally, it should be noted that the above embodiments are only fordescribing, but not limiting, the technical solutions of the presentdisclosure. Although the present disclosure has been described in detailwith reference to the above embodiments, those of ordinary skill in theart should understand that the technical solutions stated in the aboveembodiments can still be modified, or some of the technical featurestherein can be equivalently substituted; and such modifications orsubstitutions do not make the essence of the corresponding technicalsolutions depart from the spirit and scope of the technical solutions ofrespective embodiments of the present disclosure.

1. A computer-implemented method, comprising: determining a first user account that accesses a shared document; querying the shared document to obtain a group business card inserted into the shared document; displaying, according to a join-in state of the first user account into a chat group, a group chat control corresponding to the join-in state in the shared document, wherein the group chat control is used for joining the chat group or for displaying an interface of the chat group; and sending, in response to an operation on the group chat control, a corresponding group chat request.
 2. The method according to claim 1, wherein the displayed group chat control is used for displaying the interface of the chat group, and sending, in response to the operation on the group chat control, the corresponding group chat request comprises: sending the group chat request to a client of a social application, wherein the group chat request received by the client of the social application carries an identifier of the chat group, such that the client of the social application switches the interface of the chat group to a foreground display state according to the identifier of the chat group.
 3. The method according to claim 2, wherein after sending the group chat request to the client of the social application, the method further comprises: judging, based on whether an interface of the shared document is out of focus, whether a download page of the client is to be accessed.
 4. The method according to claim 1, wherein the displayed group chat control is used for joining the chat group, and sending, in response to the operation on the group chat control, the corresponding group chat request comprises: sending the group chat request to a server of a social application, wherein the group chat request received by the server carries an identifier of the chat group and an identifier of the first user account, such that the server instructs, after adding the first user account into the chat group, a client of the social application to display a notification message indicating joining of a group chat and/or to switch the interface of the chat group to a foreground display state.
 5. The method according to claim 1, wherein before querying the shared document to obtain the group business card inserted into the shared document, the method further comprises: determining a second user account that accesses the shared document; displaying a group list of chat groups that the second user account has joined into, in response to an identifier inserted into the shared document by the second user account; and inserting, according to a chat group selected by the second user account from the group list, a corresponding group business card into the shared document.
 6. The method according to claim 5, wherein after displaying the group list of chat groups that the second user account has joined into, the method further comprises: searching, according to a search term input by the second user account after the identifier, the group list for a candidate chat group that matches the search term; and updating and displaying the group list according to the candidate chat group.
 7. The method according to claim 1, wherein before displaying, according to the join-in state of the first user account into the chat group, the group chat control corresponding to the join-in state in the shared document, the method further comprises: sending a query request to a server of a social application, wherein the query request is used by the server to query the join-in state of the first user account into the chat group and to generate a query response according to the join-in state; and receiving the query response sent by the server, and determining the join-in state according to the query response.
 8. An electronic device, comprising: a memory, a processor, and a computer program that is stored in the memory and able to be run on the processor, wherein the computer program, when being executed by the processor, causes the processor to: determine a first user account that accesses a shared document; query the shared document to obtain a group business card inserted into the shared document; display, according to a join-in state of the first user account into a chat group, a group chat control corresponding to the join-in state in the shared document, wherein the group chat control is used for joining the chat group or for displaying an interface of the chat group; and send, in response to an operation on the group chat control, a corresponding group chat request.
 9. The electronic device according to claim 8, wherein when being executed by the processor, the computer program further causes the processor to: send the group chat request to a client of a social application, wherein the group chat request received by the client of the social application carries an identifier of the chat group, such that the client of the social application switches the interface of the chat group to a foreground display state according to the identifier of the chat group.
 10. The electronic device according to claim 9, wherein when being executed by the processor, the computer program further causes the processor to: judge, based on whether an interface of the shared document is out of focus, whether a download page of the client is to be accessed.
 11. The electronic device according to claim 8, wherein when being executed by the processor, the computer program further causes the processor to: send the group chat request to a server of a social application, wherein the group chat request received by the server carries an identifier of the chat group and an identifier of the first user account, such that the server instructs, after adding the first user account into the chat group, a client of the social application to display a notification message indicating joining of a group chat and/or to switch the interface of the chat group to a foreground display state.
 12. The electronic device according to claim 8, wherein when being executed by the processor, the computer program further causes the processor to: determine a second user account that accesses the shared document; display a group list of chat groups that the second user account has joined into, in response to an identifier inserted into the shared document by the second user account; and insert, according to a chat group selected by the second user account from the group list, a corresponding group business card into the shared document.
 13. The electronic device according to claim 12, wherein when being executed by the processor, the computer program further causes the processor to: search, according to a search term input by the second user account after the identifier, the group list for a candidate chat group that matches the search term; and update and display the group list according to the candidate chat group.
 14. The electronic device according to claim 8, wherein when being executed by the processor, the computer program further causes the processor to: send a query request to a server of a social application, wherein the query request is used by the server to query the join-in state of the first user account into the chat group and to generate a query response according to the join-in state; and receive the query response sent by the server, and determine the join-in state according to the query response.
 15. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein when being executed by a processor, the computer program causes the processor to: determine a first user account that accesses a shared document; query the shared document to obtain a group business card inserted into the shared document; display, according to a join-in state of the first user account into a chat group, a group chat control corresponding to the join-in state in the shared document, wherein the group chat control is used for joining the chat group or for displaying an interface of the chat group; and send, in response to an operation on the group chat control, a corresponding group chat request.
 16. The non-transitory computer-readable storage medium according to claim 15, wherein when being executed by the processor, the computer program further causes the processor to: send the group chat request to a client of a social application, wherein the group chat request received by the client of the social application carries an identifier of the chat group, such that the client of the social application switches the interface of the chat group to a foreground display state according to the identifier of the chat group.
 17. The non-transitory computer-readable storage medium according to claim 16, wherein when being executed by the processor, the computer program further causes the processor to: judge, based on whether an interface of the shared document is out of focus, whether a download page of the client is to be accessed.
 18. The non-transitory computer-readable storage medium according to claim 15, wherein when being executed by the processor, the computer program further causes the processor to: send the group chat request to a server of a social application, wherein the group chat request received by the server carries an identifier of the chat group and an identifier of the first user account, such that the server instructs, after adding the first user account into the chat group, a client of the social application to display a notification message indicating joining of a group chat and/or to switch the interface of the chat group to a foreground display state.
 19. The non-transitory computer-readable storage medium according to claim 15, wherein when being executed by the processor, the computer program further causes the processor to: determine a second user account that accesses the shared document; display a group list of chat groups that the second user account has joined into, in response to an identifier inserted into the shared document by the second user account; and insert, according to a chat group selected by the second user account from the group list, a corresponding group business card into the shared document.
 20. The non-transitory computer-readable storage medium according to claim 19, wherein when being executed by the processor, the computer program further causes the processor to: search, according to a search term input by the second user account after the identifier, the group list for a candidate chat group that matches the search term; and update and display the group list according to the candidate chat group.
 21. A computer-implemented method, comprising: determining a first user account that accesses a shared document; displaying a group list of chat groups that the first user account has joined into; and inserting, according to a chat group selected by the first user account from the group list, a corresponding group business card into the shared document.
 22. The method according to claim 21, wherein the displaying the group list of chat groups that the first user account has joined into comprises: displaying the group list of chat groups that the first user account has joined into, in response to an identifier inserted into the shared document by the first user account.
 23. The method according to claim 22, wherein after the displaying the group list of chat groups that the first user account has joined into, the method further comprises: searching, according to a search term input by the first user account after the identifier, the group list for a candidate chat group that matches the search term; and updating and displaying the group list according to the candidate chat group.
 24. The method according to claim 21, further comprising: determining a second user account that accesses the shared document; displaying, according to a state of whether the second user account has joined into the chat group, a group chat control corresponding to the state in the shared document, wherein the group chat control is used for joining the chat group or for displaying an interface of the chat group; and sending, in response to an operation on the group chat control, a corresponding group chat request.
 25. The method according to claim 24, wherein the displayed group chat control is used for displaying the interface of the chat group, and sending, in response to the operation on the group chat control, the corresponding group chat request comprises: sending the group chat request to a client of a social application, wherein the group chat request received by the client of the social application carries an identifier of the chat group, such that the client of the social application switches the interface of the chat group to a foreground display state according to the identifier of the chat group.
 26. The method according to claim 24, wherein the displayed group chat control is used for joining the chat group, and sending, in response to the operation on the group chat control, the corresponding group chat request comprises: sending the group chat request to a server of a social application, wherein the group chat request received by the server carries an identifier of the chat group and an identifier of the second user account, such that the server instructs, after adding the second user account into the chat group, a client of the social application to display a notification message indicating joining of a group chat and/or to switch the interface of the chat group to a foreground display state.
 27. The method according to claim 24, wherein before displaying, according to the state of the second user account into the chat group, the group chat control corresponding to the state in the shared document, the method further comprises: sending a query request to a server of a social application, wherein the query request is used by the server to query the state of the second user account into the chat group and to generate a query response according to the state; and receiving the query response sent by the server, and determining the state according to the query response. 